package com.formula.datastructure.exercise.tree;

public class HuffmanCode {

    public HuffmanLinkNode genCode(Integer[] array) {
        Huffman tree = new Huffman();
        HuffmanLinkNode root = tree.buildLinkNode(array);
        root.genHuffmanCode();
        return root;
    }
}
